package br.sc.senai.model.interfaces;

import br.sc.senai.model.exception.GenericException;

/**
 * @author jefferson
 * */

public interface IQuery {

	/*
	 * ex: select * from nome_tabela 
	 * */
	String getQuerySelectAll() throws GenericException ;
	
	/*
	 * ex: select * from nome_tabela where id = %s
	 * */
	String getQuerySelectById()  throws GenericException ;
	
	/*
	 * ex: insert into nome_tabela values (%s,%s,%s)
	 * */
	String getQueryInsert() throws GenericException ;
	
	/*
	 * ex: update nome_tabela set campo = valor where id = %s
	 * */
	String getQueryUpdateById() throws GenericException ;
	
	/*
	 * ex: delete from nome_tabela where id = %s
	 * */
	String getQueryDeleteById() throws GenericException ;
}
